<?php
class SessionDataStore implements DataStore {
	
	public function __construct() {
		
		session_start();
	}
	
	public function getObject($objectId) {
		
		return $_SESSION[$objectId];
	}
	
	public function addObject($objectId, $object) {
		
		$_SESSION[$objectId] = $object;
	}
	
	public function removeObject($objectId) {
		
		unset($_SESSION[$objectId]);
	}
	
	public function wipe() {
		
		session_destroy();
		session_start();
	}
}
?>